<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>{$info.name}-乡土卫士-最美乡村</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wx/css/detail.css" />
</head>
<body>
<div class="detail">
    <div class="secretary">
    	<h2>乡土卫士</h2>
        <div class="intro">
        	<div class="pic">
            <a href="__MODULE__/Vadmin/index/">
                    <eq name="info.img" value="">
                <img src="__PUBLIC__/Uploads/user_info/default.jpg"/>
                    <else/>
                <img src="__PUBLIC__/Uploads/{$info.img}"/>
                    </eq>
                </a>    
            </div>
            <div class="name">
            	<h3>{$info.name}</h3>
                <p>{$info.info}</p>
				<div class="number"><span id="supports" >已赞（<ss>{$info.supports}</ss>）</span><span style="background:url(__PUBLIC__/wx/img/comm.png) no-repeat left center; background-size:20px 20px;">日志（{$info.diary_num}）</span></div>
            </div>
        </div>
    </div>
    <div class="journal">
    	<h2>乡土卫士日志</h2>
        <div class="journallist">
        	<ul>
            
        <volist name="arcli" id="vo">
        	 <eq name="vo.img_num" value="1">
            	<li class="one">
                	<a href="__MODULE__/Article/diary/id/{$vo.arc_id}/">
                    	<div class="name">
                        	<h3>{$vo.title}</h3>
                            <p><span>
                    <eq name="vo.img" value="">
                <img src="__PUBLIC__/Uploads/user_info/default.jpg"/>
                    <else/>
                <img src="__PUBLIC__/Uploads/{$vo.img}"/>
                    </eq>
                            </span><b>{$info.name}</b><em>{$vo.com_num}评论</em>
                            <time> {$vo.addtime|date='Y-m-d',###}</time></p>
                        </div>
                        <div class="pic">
                            <volist name="vo.img_arr" id="img0">
                            <img src="{$img0}"/>
                            </volist>
                        </div>	
                    </a>
                </li>
             <else/>
                <li class="two">
                	<a href="__MODULE__/Article/diary/id/{$vo.arc_id}/">
                    	<h3>{$vo.title}</h3>
                        <div class="pic">
                            <volist name="vo.img_arr" id="img0">
                            <span><img src="{$img0}"/></span>
                            </volist>
                        </div>
                        <p><span>
                    <eq name="vo.img" value="">
                <img src="__PUBLIC__/Uploads/user_info/default.jpg"/>
                    <else/>
                <img src="__PUBLIC__/Uploads/{$vo.img}"/>
                    </eq>
                        </span><b>{$info.name}</b><em>{$vo.com_num}评论</em>
                        <time>{$vo.addtime|date='Y-m-d',###}</time></p>
                    </a>
                </li>
             </eq>
         </volist>   
                
            </ul>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="__PUBLIC__/wx/js/jquery-1.3.1.min.js"></script> 
<script type="text/javascript">
    	$("#supports").click(function(){
        	if($(this).hasClass("zan")){
            	$(this).removeClass("zan");
				$.get("__MODULE__/Vadmin/va_supports/id/{$info.id}/dowhat/dec/");
				$("#supports ss").text(Number($("#supports ss").text())-1);
        	}else{
				$.get("__MODULE__/Vadmin/va_supports/id/{$info.id}/dowhat/add/");
            	$(this).addClass("zan"); 
				$("#supports ss").text(Number($("#supports ss").text())+1);
        	}
    	});
</script>
<style type="text/css">
.secretary .intro .name .zan {
    background: url(__PUBLIC__/wx/img/zan03.png) no-repeat left center;
    background-size: 20px 20px;
    color: #ff4400;
}
</style>
</html>